package cn.goktech.factory;

import cn.goktech.pojo.User;
import org.springframework.beans.factory.FactoryBean;

public class UserFactoryBean implements FactoryBean<User> {
    public User getObject() throws Exception {
        System.out.println("正在利用实现Spring提供的FactoryBean接口创建对象");
        return new User();
    }

    public Class<?> getObjectType() {
        return null;
    }

    public boolean isSingleton() {
        return true;
    }
}
